<?php

/**
 * Tools_ResetPasswordObject - Login object
 *
 * @package
 * @author Alexis Eric, 
 * Erra Prod. http://www.erraprod.com
 * @copyright Copyright (c) 2012 - Erra Prod
 * @access public
 */
class Tools_ResetPasswordObject extends Erra_Fields_Base_Object {

    function __construct($objectId, $buildArgs = null) {
        parent::__construct($objectId, $buildArgs);
        $email = Erra_Fields_Text::create('email')
                ->setSize(40)
                ->setDescription('Votre adresse e-mail')
                ->append('<a href="'.Erra_System_PageBuilder::makeAjaxLink('login').'">Retour à la page de connexion</a>');

        $this->addField($email);
        $this->setActionName('Renvoyer mon mot de passe');
        $this->setDescription('Récupération du mot de passe');
        $this->setRenderEngine('jqueryui');
        $this->setAttribute('style', 'width:400px');
        $this->setReadOnly(true);
    }
}
